import request from '@/utils/request'

// 商品仓库列表
export function warehouseQueryList(data) {
  return request({
    url: 'goodsWarehouse/queryList',
    method: 'post',
    data: data
  })
}

// 商品仓库详情
export function warehouseQueryId(data) {
  return request({
    url: 'goodsWarehouse/queryId',
    method: 'post',
    data: data
  })
}

// 添加
export function warehouseAdd(data) {
  return request({
    url: 'goodsWarehouse/add',
    method: 'post',
    data: data
  })
}

// 更新
export function warehouseUpdate(data) {
  return request({
    url: 'goodsWarehouse/update',
    method: 'post',
    data: data
  })
}

// 删除
export function warehouseDelete(data) {
  return request({
    url: 'goodsWarehouse/delete',
    method: 'post',
    data: data
  })
}
